projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
871ca26
)
ARM: DRA7: emif: Fix updating of refresh ctrl shadow
author
Lokesh Vutla
<
[email protected]
>
Sat, 5 Mar 2016 12:02:28 +0000
(17:32 +0530)
committer
Tom Rini
<
[email protected]
>
Mon, 14 Mar 2016 23:18:46 +0000
(19:18 -0400)
On DRA7, refresh ctrl shadow should be updated with
the final value.
Signed-off-by: Lokesh Vutla <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
arch/arm/cpu/armv7/omap-common/emif-common.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/omap-common/emif-common.c
b/arch/arm/cpu/armv7/omap-common/emif-common.c
index bf7bf262c7f6dec7f8f440b4c6b0974825379c59..90c241a007b2039b311d3417bec46352343aca95 100644
(file)
--- a/
arch/arm/cpu/armv7/omap-common/emif-common.c
+++ b/
arch/arm/cpu/armv7/omap-common/emif-common.c
@@
-163,7
+163,11
@@
void emif_update_timings(u32 base, const struct emif_regs *regs)
{
struct emif_reg_struct *emif = (struct emif_reg_struct *)base;
- writel(regs->ref_ctrl, &emif->emif_sdram_ref_ctrl_shdw);
+ if (!is_dra7xx())
+ writel(regs->ref_ctrl, &emif->emif_sdram_ref_ctrl_shdw);
+ else
+ writel(regs->ref_ctrl_final, &emif->emif_sdram_ref_ctrl_shdw);
+
writel(regs->sdram_tim1, &emif->emif_sdram_tim_1_shdw);
writel(regs->sdram_tim2, &emif->emif_sdram_tim_2_shdw);
writel(regs->sdram_tim3, &emif->emif_sdram_tim_3_shdw);